<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org/">
<head>
    <th:block th:replace="admin/common :: heads"></th:block>
</head>
<body class="sidebar-fixed header-fixed">
<div class="page-wrapper">
    <th:block th:replace="admin/common :: navbar"></th:block>

    <div class="main-container">
        <th:block th:replace="admin/common :: sidebar"></th:block>


        <div class="content">
            <!-- Side Navbar -->
            <div style="text-align: center; color: #808080;margin-top: 100px;">
                <h1>Welcome to mandarin administrator system</h1>
                <p>Select the sidebar options to manage</p>
            </div>
        </div>

        <th:block th:replace="admin/common :: scripts"></th:block>

        <script>
            $("#logout").bind("click", function () {
                $.ajax({
                    url: "https://virtserver.swaggerhub.com/tanglizi/MandarinAPI/1.0/api/user/token",
                    type: "DELETE",
                    success: function (resp) {
                        console.log(resp);
                    }
                });
                window.location.href = "login.html";
            });
        </script>
</body>
</html>
